package com.srxz.mobilepharmacy.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;

/**
 * 发药信息表
 */
@Entity
@Table(name="tb_clinic_rec")
@AllArgsConstructor
@NoArgsConstructor
@Data
public class ClinicRec implements Serializable {
    @EmbeddedId
    private ClinicRecPK id;
    @Column(name = "grp")
    private Integer grp;
    @Column(name = "dep")
    private Integer dep;
    @Column(name = "dr")
    private Integer dr;
    @Column(name = "mid")
    private Integer mid;
    @Column(name = "bn", length = 50)
    private String bn;
    @Column(name = "vdate")
    private Integer vdate;
    @Column(name = "attr")
    private Integer attr;
    @Column(name = "quan")
    private Double quan;
    @Column(name = "prr")
    private Double prr;
    @Column(name = "pri")
    private Double pri;
    @Column(name = "mny")
    private Double mny;
    @Column(name = "cs")
    private Integer cs;
    @Column(name = "mrn")
    private Integer mrn;
    @Column(name = "smed", length = 20)
    private String smed;
    @Column(name = "sdate")
    private Date sdate;
    @Column(name = "acc")
    private Integer acc;
    @Column(name = "send")
    private Integer send;
    @Column(name = "up")
    private Integer up;
    @Column(name = "usag", length = 100)
    private String usag;
    @Column(name = "pr0")
    private Double pr0;
    @Column(name = "prescsn")
    private BigInteger prescsn;
    @Column(name = "prescid")
    private Integer prescid;
    @Column(name = "prescord")
    private Integer prescord;
    @Column(name = "miUpDt")
    private Date miUpDt;

}
